package com.atde._04_structural_design_patterns.bridge;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.bridge
 * @Author: Del
 * @CreateTime: 2025-06-20  00:28
 * @Description: 桥接模式 --- 客户端测试类
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        // 实例化手机及 样式 + 品牌
        Phone phone01 = new FoldedPhone(new XiaoMi());
        phone01.open();
        phone01.call();
        phone01.close();
        System.out.println("----------------------------");

        Phone phone02 = new FoldedPhone(new Vivo());
        phone02.open();
        phone02.call();
        phone02.close();
    }
}
